﻿/************************************************************************
* Copyright (c) 2019 All Rights Reserved.
*命名空间：BlueFox.Qcloud
*文件名： QcloudExtend
*创建人： 覃乃林
*创建时间：2019/2/15 11:54:07
*描述
************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace BlueFox.Qcloud
{
    public static class QcloudExtend
    {
        public static IServiceCollection AddQcloudSms(this IServiceCollection services,
            IConfigurationSection configurationSection)
        {
            var connstr = configurationSection.Get<QcloudConfig>();
            Config.SetConfig(connstr.SdkAppid, connstr.AppKey);
            return services;
        }
    }
}
